package com.penton.util;

import android.os.Debug;

public class OutOfMemoryHandler {
	public static final long TRESHOLD_HEAP_SIZE = 20400000L;

	public static void gcIfAllocateOutOfHeapSize() {
		if ( Debug.getNativeHeapAllocatedSize() / 1024L >= 20400000L ) {
			handle();
		}
	}

	public static void handle() {
		System.gc();
	}
}